﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="ProductDetail.aspx.cs" Inherits="ProductDetail" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>

<asp:Content ID="Content3" runat="server" ContentPlaceHolderID="shoppingCartContent">
<div id="shopping-cart" style="margin-left: 2px;">
	 <p class="Title-menu">Shopping cart</p>
	<div id="total-cost" style="padding: 16px 0pt;">
		<table width="100%">
			<tr>
			  <td colspan="2" class="gio1"><div style="float:left;">&nbsp;Quantities:</div>
			  
				  <DIV class="style52" style="text-align:right; float:right; padding-right:2px" id="QuantityCart">
					<% =totalQuantity %>
				  </DIV>
				  </td>  
			</tr>
			<tr>
			  <td class="gio1">&nbsp;Total Price:</td>
			  <td colspan="2" align="right" class="gio1"><span class="style52" id="PriceCart">
					<% =String.Format("{0:C}", totalPrice)%>
			  </span></td>
			</tr>
			<tr>
				<td  colspan="2" align="center">
					<a href="ShoppingCartView.aspx"><img src="Images/AddToCard.png" width="19" height="16" alt="error" style="vertical-align:bottom;"/>Go to Cart</a>
				</td>
			</tr>
		</table>
	</div>
</div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <asp:Image ID="Image1" runat="server" />
    <div id="product-title" style="width:555px;float:left;">
        <%= pr.ProductName %>
    </div>
    <div id="product-image" style="max-width:235px;float:left;">
        <asp:Image ID="Image2" runat="server" />
        
     </div>
    <div id="product-description" style="width:320px;float:left;">
        <table>
            <tr>
                <td>
                    Category:
                </td>
                <td>
                    <a href="Products.aspx?cid=<%= pr.CategoryID %>">
                        <%= sCategory %>
                    </a>
                </td>
            </tr>
            <tr>
                <td>
                    Supplier:
                </td>
                <td>
                    <a href="Products.aspx?sid=<%= pr.SupplierID %>">
                        <%= sSupplier %>
                    </a>
                </td>
            </tr>
            <tr>
                <td>
                    Price:
                </td>
                <td>
                    <%= pr.ProductPrice %>
                </td>
            </tr>
            <tr>
                <td>
                    Description:
                </td>
                <td>
                    <%= pr.Decription %>
                    
                </td>
            </tr>
            <tr>
                <td>
                    Status:
                </td>
                <td>
                    <%= isStored %>
                </td>
            </tr>             
        </table>

        <div>
            <span class='style51'><img class="item_button_cart" src="Images/home-depot-add.gif" title="Add To Cart" alt="Error"  onclick="CallAjax(<% =pr.ProductID %>,1)" /></span>
        </div>
    </div>
</asp:Content>

